//332. 重新安排行程

/**
 * @param {string[][]} tickets
 * @return {string[]}
 */
var findItinerary = function(tickets) {
    let map = new Map()
    for (const it of tickets) {
        let [from,to]=it
        if(!map.has(from)){
            map.set(from,[])
        }
        let v = map.get(from)
        v.push(to)
        map.set(from,v)
    }
    // 没有优先队列，懒得写了
    for (const it of map) {
        // let [,]
    }
};